
// 机构的接口
import {
  axiosPostJson,
  axiosPostJson_select,
  axiosGetJson,
  axiosGetJson_select,
  axiosGetFrom
} from "@/utils/service";
import qs from "qs";

/**
 * 
 * 城市
 */

// // 修改
// export function update_commonAddObj(data) {
//     return axiosPostJson("/config-server/content/updateById", data);
// }

// 查询
export function select_system_cityList(data) {
    return axiosPostJson_select("/config-server/area/page", data);
}      

// 添加-查询没有部署得城市名称
export function select_system_cityAddObj(data) {
    return axiosGetJson_select(
      "/config-server/area/queryNoDeployByName",
      data
    );
}

// 添加
export function add_system_cityAddObj(data) {
    return axiosGetJson("/config-server/area/addDeploy", data);
}

// 修改显示
export function updateshow_system_cityAddObj(data) {
         return axiosGetFrom("/config-server/area/updateDeploy", data);
};

// 删除
export function delete_system_cityAddObj(data) {
    return axiosGetJson("/config-server/area/deleteDeploy", data);
};


/**
 * 系统用户管理
 */
    // 添加
  export function add_system_userAddObj(data) {
      return axiosPostJson("/admin-server/sys/user/create", data);
  }

  // 修改 
  export function update_system_userAddObj(data) {
      return axiosPostJson("/admin-server/sys/user/update", data);
  }

  // 删除
  export function delete_system_userAddObj(data) {
      return axiosGetJson("/admin-server/sys/user/deleteById", data);
  }

  // 分页查询
  export function select_system_userAddObj(data) {
      return axiosPostJson_select("/admin-server/sys/user/page", data);
  }

  